package com.project.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author YHY
 * @since 2022-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Orders对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "用户钱包地址")
    @TableField("user_wallet")
    private String userWallet;


    @ApiModelProperty(value = "金额----usdt/gecn")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "订单类型：1初级认证订单，2高级认证订单，3领取1GECN订单，4提现订单,5")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "状态，1待支付，3完全支付完成,4转出中,5已转出")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;
    @ApiModelProperty(value = "usdt交易hash")
    @TableField("hash")
    private String hash;


    @ApiModelProperty(value = "交易确认时间")
    @TableField("query_time")
    private String queryTime;


    @ApiModelProperty(value = "手续费----总bnb手续费")
    @TableField("server_change")
    private BigDecimal serverChange;

    @ApiModelProperty(value = "手续费----我的手续费")
    @TableField("server_change_one")
    private BigDecimal serverChangeOne;

    @ApiModelProperty(value = "手续费----直推上级的手续费")
    @TableField("server_change_Two")
    private BigDecimal serverChangeTwo;

    @ApiModelProperty(value = "手续费----间推上级的手续费")
    @TableField("server_change_three")
    private BigDecimal serverChangeThree;

    @ApiModelProperty(value = "转出gecn的hash")
    @TableField("send_hx")
    private String sendHx;


    @ApiModelProperty(value = "转出usdt的hash------给直属上级和间推上级转usdt的hash")
    @TableField("send_usdt_hx")
    private String sendUsdtHx;


    @TableField("ip")
    private String ip;


}
